<div class="re_con_box">
	<table class="require_list">
    	<tbody>
        	<tr>
            	<th align="left" width="9%">需求价格</th>
                <th align="left" width="40%">需求标题</th>
                <th width="9%">竞标数量</th>
                <th align="center" width="12%">发布者</th>                                       
                <th width="9%">任务进度</th>
                <th align="center" width="12%">剩余时间</th>
            </tr>
				<%requirements.each do |r|%>
		            <tr>
		            	<td><strong>￥<%= r.price%></strong></td>
		                <td><%= link_to r.title,:controller => "/requirement",:action => :show, :id => r.id %></td>
		                <td align="center"><%= r.comments.length%></td>
		                <td align="center"><%= link_to r.user.username, profile_for(r.user) %></td>                                          
		                <td align="center"><%= requirement_status(r)%></td>
		                <td align="center">
		                	<u class="orange1">
		                		<%if r.status=="solved" || r.status == "expirated" %>
									<%= requirement_status(r) %>
								<% else -%>
		                			<%endtime=r.created_at+r.expiration.to_i.days%>
									<%= distance_of_time_in_words(Time.now,endtime)%>
								<% end %>
							</u>
						</td>
		            </tr>
				<% end %>
		</tbody>
	</table>
</div>						  